

def test():
    result =[]
    for i in range(10):
         yield str(i)+"x"
         yield i
         result.append(i)


# t=test()
# print(t)
# for i in t:
#     print(i)


text = "Hello, World! World is beautiful. World is vast."
new_text = text.replace("World", "Earth")
print(new_text)  # 输出: Hello, Earth! Earth is beautiful. World is vast.



